#pragma config(Hubs,  S1, HTMotor,  HTServo,  none,     none)
#pragma config(Hubs,  S2, HTMotor,  HTMotor,  none,     none)
#pragma config(Sensor, S1,     ,               sensorI2CMuxController)
#pragma config(Sensor, S2,     ,               sensorI2CMuxController)
#pragma config(Sensor, S3,     ProtoBoard,     sensorI2CCustomFastSkipStates9V)
#pragma config(Sensor, S4,     IRMux,          sensorI2CCustomFastSkipStates)
#pragma config(Motor,  motorA,           ,             tmotorNXT, openLoop, encoder)
#pragma config(Motor,  motorB,          Backward,      tmotorNXT, openLoop, encoder)
#pragma config(Motor,  motorC,          Forward,       tmotorNXT, openLoop, encoder)
#pragma config(Motor,  mtr_S1_C1_1,     RightBack,     tmotorTetrix, openLoop, encoder)
#pragma config(Motor,  mtr_S1_C1_2,     LeftBack,      tmotorTetrix, openLoop, reversed, encoder)
#pragma config(Motor,  mtr_S2_C1_1,     RightFront,    tmotorTetrix, openLoop, encoder)
#pragma config(Motor,  mtr_S2_C1_2,     LeftFront,     tmotorTetrix, openLoop, reversed, encoder)
#pragma config(Motor,  mtr_S2_C2_1,     SideLift,      tmotorTetrix, openLoop, encoder)
#pragma config(Motor,  mtr_S2_C2_2,     MiddleLift,    tmotorTetrix, openLoop, encoder)
#pragma config(Servo,  srvo_S1_C2_1,    servo1,               tServoStandard)
#pragma config(Servo,  srvo_S1_C2_2,    servo2,               tServoStandard)
#pragma config(Servo,  srvo_S1_C2_3,    LeftGripper2,         tServoStandard)
#pragma config(Servo,  srvo_S1_C2_4,    RightGripper2,        tServoStandard)
#pragma config(Servo,  srvo_S1_C2_5,    LeftGripper1,         tServoStandard)
#pragma config(Servo,  srvo_S1_C2_6,    RightGripper1,        tServoStandard)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
	while(true)
	{
		if(nNxtButtonPressed==kRightButton) //Moves the lift down if the right button is pressed
		{
			motor[Backward]=100;
			motor[Forward]=100;
		}
		else if (nNxtButtonPressed==kLeftButton)  //Moves the lift up if the left button is pressed
		{
			motor[Backward]=-100;
			motor[Forward]=-100;
		}
		else //Stops the lift if no button is pressed
		{
			motor[Backward]=0;
			motor[Forward]=0;		}
	}
}
